BehaviorSubject(T) constructor¶
Defined in
Type: BehaviorSubjectSystem.Reactive.Subjects
Assembly: System.Reactive.dll
Applies to
netstandard2.0
public BehaviorSubject(T value)
Summary: Initializes a new instance of the BehaviorSubject class which creates a subject that caches its last value and starts with the specified value.
Parameters
| Name | Type | Description |
|---|---|---|
value | T | Initial value sent to observers when no other value has been received by the subject yet. |